package com.riteny.common.schedule.entity;

import lombok.Data;

import java.util.concurrent.ScheduledFuture;

/**
 * @author Riteny
 * 2020/9/25  14:56
 */
@Data
public class ScheduleTask {

    private String name;

    private String cron;

    private Runnable task;

    private ScheduledFuture future;

    public ScheduleTask(String name, String cron, Runnable task, ScheduledFuture future) {
        this.name = name;
        this.cron = cron;
        this.task = task;
        this.future = future;
    }
}
